package com.zhang.publisher.service.impl;

import com.zhang.publisher.bean.VisitorStats;
import com.zhang.publisher.mapper.VisitorStatsMapper;
import com.zhang.publisher.service.VisitorStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @title:
 * @author: zhang
 * @date: 2022/3/17 23:03
 */
@Service
public class VisitorStatusServiceImpl implements VisitorStatusService {
    @Autowired
    private VisitorStatsMapper visitorStatsMapper;

    @Override
    public List<VisitorStats> getVisitorStats(Integer date) {
        return visitorStatsMapper.selectVisitorStats(date);
    }

    @Override
    public List<VisitorStats> getVisitorByHr(Integer date) {
        return visitorStatsMapper.selectVisitorByHr(date);
    }
}
